﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserFreindRequest.ascx.cs"
    Inherits="SocialRede.Controls.UserFreindRequest" %>
<table cellpadding="1" cellspacing="1" width="100%" border="0">
    <tr>
        <td>
            Requisições de Amigos
        </td>
    </tr>
    <tr>
        <td align="center">
            <asp:label id="lblError" runat="server" cssclass="redtext"></asp:label>
        </td>
    </tr>
    <tr>
        <td valign="top" align="center">
            <asp:datalist id="FreindRequestList" runat="server" width="100%" repeatcolumns="5"
                onitemcommand="FreindRequestList_ItemCommand">
                <itemtemplate>
                    <table border="0" cellpadding="2" cellspacing="2" align="center" style="background-color: #f5f5f5">
                        <tr>
                            <td align="center" valign="top">
                                <a href='<%#getHREF(Container.DataItem)%>'>
                                    <input type="hidden" id="hiddenId" value='<%# DataBinder.Eval(Container.DataItem, "Id") %>'
                                        runat="server" name="hiddenId" />
                                    <img src='<%# getSRC(Container.DataItem) %>' align="middle" border="0" width="80px">
                                    <br />
                                    <asp:Button ID="AcceptButton" runat="server" ToolTip="Aceitar" 
                                    Text="Aceitar" CommandName="Accept" /><br />
                                    <asp:Button ID="Deny" runat="server" ToolTip="Negar" Text="Negar" 
                                    CommandName="Deny" />
                                </a>&nbsp;
                            </td>
                        </tr>
                    </table>
                </itemtemplate>
            </asp:datalist>
        </td>
    </tr>
</table>
